#ifndef REVOLUTIONOJECT_H
#define REVOLUTIONOJECT_H

#include "objet3D.h"
#include "vertex.h"
#include "texture.h"
#include <GL/glut.h>
#include <list>
#include <vector>
#include <iostream>
using namespace std;

class RevolutionObject : public Objet3D
{
public:
RevolutionObject(int nb_pas, double angle);
~RevolutionObject();


protected:
virtual list<Vertex> _generateProfil();
void _generatePoints(double angle);
void _joinPoints();
void _draw();
list<Vertex> _points;
int _nb_pas, _nb_vertex;
Texture *_tex;

};


#endif
